Interface: ExtendedRTCPeerConnection
Hierarchy
RTCPeerConnection
↳
ExtendedRTCPeerConnection
Properties
canTrickleIceCandidates
• Readonly
canTrickleIceCandidates: null
| boolean
Inherited from
RTCPeerConnection.canTrickleIceCandidates
connectionState
• Readonly
connectionState: RTCPeerConnectionState
Inherited from
RTCPeerConnection.connectionState
currentLocalDescription
• Readonly
currentLocalDescription: null
| RTCSessionDescription
Inherited from
RTCPeerConnection.currentLocalDescription
currentRemoteDescription
• Readonly
currentRemoteDescription: null
| RTCSessionDescription
Inherited from
RTCPeerConnection.currentRemoteDescription
iceConnectionState
• Readonly
iceConnectionState: RTCIceConnectionState
Inherited from
RTCPeerConnection.iceConnectionState
iceGatheringState
• Readonly
iceGatheringState: RTCIceGatheringState
Inherited from
RTCPeerConnection.iceGatheringState
localDescription
• Readonly
localDescription: null
| RTCSessionDescription
Inherited from
RTCPeerConnection.localDescription
onconnectionstatechange
• onconnectionstatechange: null
| (this
: RTCPeerConnection
, ev
: Event
) => any
Inherited from
RTCPeerConnection.onconnectionstatechange
ondatachannel
• ondatachannel: null
| (this
: RTCPeerConnection
, ev
: RTCDataChannelEvent
) => any
Inherited from
RTCPeerConnection.ondatachannel
onicecandidate
• onicecandidate: null
| (this
: RTCPeerConnection
, ev
: RTCPeerConnectionIceEvent
) => any
Inherited from
RTCPeerConnection.onicecandidate
onicecandidateerror
• onicecandidateerror: null
| (this
: RTCPeerConnection
, ev
: Event
) => any
Inherited from
RTCPeerConnection.onicecandidateerror
oniceconnectionstatechange
• oniceconnectionstatechange: null
| (this
: RTCPeerConnection
, ev
: Event
) => any
Inherited from
RTCPeerConnection.oniceconnectionstatechange
onicegatheringstatechange
• onicegatheringstatechange: null
| (this
: RTCPeerConnection
, ev
: Event
) => any
Inherited from
RTCPeerConnection.onicegatheringstatechange
onnegotiationneeded
• onnegotiationneeded: null
| (this
: RTCPeerConnection
, ev
: Event
) => any
Inherited from
RTCPeerConnection.onnegotiationneeded
onsignalingstatechange
• onsignalingstatechange: null
| (this
: RTCPeerConnection
, ev
: Event
) => any
Inherited from
RTCPeerConnection.onsignalingstatechange
ontrack
• ontrack: null
| (this
: RTCPeerConnection
, ev
: RTCTrackEvent
) => any
Inherited from
RTCPeerConnection.ontrack
peerIdentity
• peerIdentity: Promise
<unknown
>
pendingLocalDescription
• Readonly
pendingLocalDescription: null
| RTCSessionDescription
Inherited from
RTCPeerConnection.pendingLocalDescription
pendingRemoteDescription
• Readonly
pendingRemoteDescription: null
| RTCSessionDescription
Inherited from
RTCPeerConnection.pendingRemoteDescription
remoteDescription
• Readonly
remoteDescription: null
| RTCSessionDescription
Inherited from
RTCPeerConnection.remoteDescription
sctp
• Readonly
sctp: null
| RTCSctpTransport
Inherited from
RTCPeerConnection.sctp
signalingState
• Readonly
signalingState: RTCSignalingState
Inherited from
RTCPeerConnection.signalingState
Methods
addEventListener
▸ addEventListener<K
>(type
, listener
, options?
): void
Type parameters
Name | Type |
---|---|
K | extends keyof RTCPeerConnectionEventMap |
Parameters
Name | Type |
---|---|
type | K |
listener | (this : RTCPeerConnection , ev : RTCPeerConnectionEventMap [K ]) => any |
options? | boolean | AddEventListenerOptions |
Returns
void
Inherited from
RTCPeerConnection.addEventListener
▸ addEventListener(type
, listener
, options?
): void
Parameters
Name | Type |
---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean | AddEventListenerOptions |
Returns
void
Inherited from
RTCPeerConnection.addEventListener
addIceCandidate
▸ addIceCandidate(candidate?
): Promise
<void
>
Parameters
Name | Type |
---|---|
candidate? | RTCIceCandidateInit |
Returns
Promise
<void
>
Inherited from
RTCPeerConnection.addIceCandidate
▸ addIceCandidate(candidate
, successCallback
, failureCallback
): Promise
<void
>
Deprecated
Parameters
Name | Type |
---|---|
candidate | RTCIceCandidateInit |
successCallback | VoidFunction |
failureCallback | RTCPeerConnectionErrorCallback |
Returns
Promise
<void
>
Inherited from
RTCPeerConnection.addIceCandidate
addTrack
▸ addTrack(track
, ...streams
): RTCRtpSender
Parameters
Name | Type |
---|---|
track | MediaStreamTrack |
...streams | MediaStream [] |
Returns
RTCRtpSender
Inherited from
RTCPeerConnection.addTrack
addTransceiver
▸ addTransceiver(trackOrKind
, init?
): RTCRtpTransceiver
Parameters
Name | Type |
---|---|
trackOrKind | string | MediaStreamTrack |
init? | RTCRtpTransceiverInit |
Returns
RTCRtpTransceiver
Inherited from
RTCPeerConnection.addTransceiver
close
▸ close(): void
Returns
void
Inherited from
RTCPeerConnection.close
createAnswer
▸ createAnswer(options?
): Promise
<RTCSessionDescriptionInit
>
Parameters
Name | Type |
---|---|
options? | RTCAnswerOptions |
Returns
Promise
<RTCSessionDescriptionInit
>
Inherited from
RTCPeerConnection.createAnswer
▸ createAnswer(successCallback
, failureCallback
): Promise
<void
>
Deprecated
Parameters
Name | Type |
---|---|
successCallback | RTCSessionDescriptionCallback |
failureCallback | RTCPeerConnectionErrorCallback |
Returns
Promise
<void
>
Inherited from
RTCPeerConnection.createAnswer
createDataChannel
▸ createDataChannel(label
, dataChannelDict?
): RTCDataChannel
Parameters
Name | Type |
---|---|
label | string |
dataChannelDict? | RTCDataChannelInit |
Returns
RTCDataChannel
Inherited from
RTCPeerConnection.createDataChannel
createOffer
▸ createOffer(options?
): Promise
<RTCSessionDescriptionInit
>
Parameters
Name | Type |
---|---|
options? | RTCOfferOptions |
Returns
Promise
<RTCSessionDescriptionInit
>
Inherited from
RTCPeerConnection.createOffer
▸ createOffer(successCallback
, failureCallback
, options?
): Promise
<void
>
Deprecated
Parameters
Name | Type |
---|---|
successCallback | RTCSessionDescriptionCallback |
failureCallback | RTCPeerConnectionErrorCallback |
options? | RTCOfferOptions |
Returns
Promise
<void
>
Inherited from
RTCPeerConnection.createOffer
dispatchEvent
▸ dispatchEvent(event
): boolean
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Parameters
Name | Type |
---|---|
event | Event |
Returns
boolean
Inherited from
RTCPeerConnection.dispatchEvent
getConfiguration
▸ getConfiguration(): RTCConfiguration
Returns
RTCConfiguration
Inherited from
RTCPeerConnection.getConfiguration
getReceivers
▸ getReceivers(): RTCRtpReceiver
[]
Returns
RTCRtpReceiver
[]
Inherited from
RTCPeerConnection.getReceivers
getSenders
▸ getSenders(): RTCRtpSender
[]
Returns
RTCRtpSender
[]
Inherited from
RTCPeerConnection.getSenders
getStats
▸ getStats(selector?
): Promise
<RTCStatsReport
>
Parameters
Name | Type |
---|---|
selector? | null | MediaStreamTrack |
Returns
Promise
<RTCStatsReport
>
Inherited from
RTCPeerConnection.getStats
getTransceivers
▸ getTransceivers(): RTCRtpTransceiver
[]
Returns
RTCRtpTransceiver
[]
Inherited from
RTCPeerConnection.getTransceivers
removeEventListener
▸ removeEventListener<K
>(type
, listener
, options?
): void
Type parameters
Name | Type |
---|---|
K | extends keyof RTCPeerConnectionEventMap |
Parameters
Name | Type |
---|---|
type | K |
listener | (this : RTCPeerConnection , ev : RTCPeerConnectionEventMap [K ]) => any |
options? | boolean | EventListenerOptions |
Returns
void
Inherited from
RTCPeerConnection.removeEventListener
▸ removeEventListener(type
, listener
, options?
): void
Parameters
Name | Type |
---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean | EventListenerOptions |
Returns
void
Inherited from
RTCPeerConnection.removeEventListener
removeTrack
▸ removeTrack(sender
): void
Parameters
Name | Type |
---|---|
sender | RTCRtpSender |
Returns
void
Inherited from
RTCPeerConnection.removeTrack
restartIce
▸ restartIce(): void
Typescript DOM type definition has not included this method for
RTCPeerConnection
, thus patch it manually.
Allow a web application to easily request that ICE candidate gathering be redone on both ends of the connection. This simplifies the process by allowing the same method to be used by either the caller or the receiver to trigger an ICE restart.
https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/restartIce
Returns
void
Overrides
RTCPeerConnection.restartIce
setConfiguration
▸ setConfiguration(configuration?
): void
Parameters
Name | Type |
---|---|
configuration? | RTCConfiguration |
Returns
void
Inherited from
RTCPeerConnection.setConfiguration
setLocalDescription
▸ setLocalDescription(description?
): Promise
<void
>
Parameters
Name | Type |
---|---|
description? | RTCLocalSessionDescriptionInit |
Returns
Promise
<void
>
Inherited from
RTCPeerConnection.setLocalDescription
▸ setLocalDescription(description
, successCallback
, failureCallback
): Promise
<void
>
Deprecated
Parameters
Name | Type |
---|---|
description | RTCLocalSessionDescriptionInit |
successCallback | VoidFunction |
failureCallback | RTCPeerConnectionErrorCallback |
Returns
Promise
<void
>
Inherited from
RTCPeerConnection.setLocalDescription
setRemoteDescription
▸ setRemoteDescription(description
): Promise
<void
>
Parameters
Name | Type |
---|---|
description | RTCSessionDescriptionInit |
Returns
Promise
<void
>
Inherited from
RTCPeerConnection.setRemoteDescription
▸ setRemoteDescription(description
, successCallback
, failureCallback
): Promise
<void
>
Deprecated
Parameters
Name | Type |
---|---|
description | RTCSessionDescriptionInit |
successCallback | VoidFunction |
failureCallback | RTCPeerConnectionErrorCallback |
Returns
Promise
<void
>
Inherited from
RTCPeerConnection.setRemoteDescription